home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-21 / api92.zip / ONLY1.ZIP / ONLY1.DOC next >
Text File  |  1991-01-16  |  3KB  |  68 lines

  1.                                  ONLY1.SHP
  2.  
  3. ONLY1.SHP is a shared program which can be used with version 2.26 of 
  4. DESQview or above.  It sets up a DESQview mailbox and will prevent the 
  5. opening of the same program or another program which is running ONLY1.SHP 
  6. with the same mailbox name.
  7.  
  8. The reason you might want to use ONLY1.SHP is that you may have a program 
  9. that has problems when more than one copy is run concurrently.  Or, you have 
  10. two or more programs which would conflict with each other over the use of a 
  11. file or hardware device if run concurrently.  
  12.  
  13. For instance you might be running a database that does not have any multi-
  14. user facilites to lock a record or field, which may get confused if two 
  15. copies of the program are opened.  In another instance, you might have two 
  16. different programs that use the same serial port.  By using ONLY1.SHP, you 
  17. can prevent a program from opening and taking the port away from another 
  18. program that is using it.
  19.  
  20. In order to use ONLY1.SHP, you put the ONLY1.SHP driver in the DESQview 
  21. directory and specify the program in the shared program field in Change a 
  22. Program.  The name of the mailbox you want specify is put in the Data field.  
  23. An example would be as follows: 
  24. ------------------------------------------------------------------
  25.                                Shared Program
  26. Pathname..: only1.shp    
  27. Data......: DataBase
  28. ------------------------------------------------------------------
  29.  
  30. If you were to configure your DataBase program as shown above, the first 
  31. copy would open normally, but if you tried to open a second copy with the 
  32. first still open, you would get an error message as follows:
  33.  ______________________________
  34. |                              |
  35. | Only 1 copy of this program  |
  36. | can be run at a time ...     |
  37. | (DataBase)                   |
  38. |______________________________|
  39.  
  40. At this point, you have to hit ESC and the window will be aborted.
  41.  
  42. Using DESQview's "/MS" Parameter:
  43.  
  44. ONLY1.SHP uses small amounts of DESQview Shared Memory.  This memory must 
  45. always be located in conventional memory (below 640K) so that can always 
  46. communicate with other shared programs which might be opened.  DESQview 
  47. reserves some shared memory by default, but the amount is generally 
  48. insufficient to support ONLY1.SHP.  
  49.  
  50. The problem which occurs is that once you have a window open which has been 
  51. configured to use maximum memory, and then open a window which loads 
  52. ONLY1.SHP, the first window will have to be swapped out so that the shared 
  53. memory used by ONLY1 can be put below 640K.  When you switch back to the 
  54. first window, you will again get swapping.  If either of the windows have 
  55. been made non-swappable, you may get the message, "A non-swappable window is 
  56. in the way".
  57.  
  58. If you are having swapping problems of this type, when using ONLY1.SHP or 
  59. other shared programs, start DESQview with the parameter "/SM:1" as follows:
  60.  
  61. DV /MS:1
  62.  
  63. This will reserve an extra 1K of shared memory, which should be enough for 
  64. ONLY1.SHP's purposes.
  65.  
  66.              Copyright (C) 1990 by Quarterdeck Office Systems
  67.                   * * *   E N D   O F   F I L E    * * * 
  68.